<template>
  <div id="app">
    <mynav v-if="!isLoginPage"></mynav>
    <router-view/>
  </div>
</template>
<style>

*{
    margin:0;
    padding:0;
}
</style>


<script>
  import mynav from  './components/nav.vue'
  import router from './router'

  export default{
    name:"app",
    components:{
      mynav,
      router
    },
    computed: {
      // 判断当前页面是不是登录页
      isLoginPage(){
        return this.$route.path.startsWith("/login") || this.$route.path.startsWith("/Signup");
      },
    }

  }

</script>